import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(import.meta.env.BASE_URL),  // 主要是hash模式
    routes: [
        {
            //主页
            path: '/',
            component: () => import('@/views/Home.vue'),
            redirect: '/trace',
            children: [
                {
                    path: '/trace',
                    component: () => import('@/views/router_page/Trace.vue'),
                },
                {
                    path: '/dex2oat',
                    component: () => import('@/views/router_page/Dex2oat.vue'),
                },
                {
                    path: '/appstart',
                    component: () => import('@/views/router_page/AppStart.vue'),
                },
                {
                    path: '/tools',
                    component: () => import('@/views/router_page/Tools.vue'),
                },
                {
                    path: '/settings',
                    component: () => import('@/views/Settings.vue'),
                },
            ],
        }
    ]
})

export default router